﻿<UserControl x:Name="ssUserControl" x:Class="PRI_SliverlightSS_App.PRI_SliverlightSS"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Loaded="ssUserControl_Loaded"  >
    <Grid x:Name="LayoutRoot" Background="Black">
        <StackPanel x:Name="spBrowse" Visibility="Collapsed" Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center" Background="WhiteSmoke">
            <StackPanel Background="DarkOrange" >
                <TextBlock x:Name="tbBrowseInvalidUser" Margin="10" Visibility="Collapsed" ></TextBlock>
            </StackPanel>
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
                <StackPanel>
                    <TextBlock Margin="5">Enter Picasa Username:</TextBlock>
                    <TextBox x:Name="tbPicasaUsername" Width="200" Margin="5" Text="clickalbum"></TextBox>
                </StackPanel>
            </StackPanel>
            <Button x:Name="buttonBrowsePicasaAlbum" Content="Browse Picasa Album" Width="200" Margin="10" Click="buttonBrowsePicasaAlbum_Click"></Button>
        </StackPanel>
        <Grid x:Name="canvasAlbums" Height="500" Width="500" VerticalAlignment="Center" HorizontalAlignment="Center" Background="Black">
                <Canvas x:Name="canvasAlbumsPics" Height="500" Width="500" VerticalAlignment="Center" HorizontalAlignment="Center" Background="Black" >
                </Canvas>
                <StackPanel x:Name="spAlbumInfo" Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center">
                    <TextBlock  x:Name="txtAlbumInfo" MaxHeight="350" MaxWidth="160" TextWrapping="Wrap" TextAlignment="Center">
                    <Run x:Name="txtAlbumInfo_Name" Foreground="Wheat" FontFamily="Verdana" FontSize="14" FontWeight="Bold">Hello Priyakant</Run>
                    <LineBreak/>
                    <Run x:Name="txtAlbumInfo_Author" Foreground="Wheat" FontFamily="Verdana" FontSize="10">(Author: priyakant)</Run>
                    <LineBreak/>
                    <Run x:Name="txtAlbumInfo_PublishedDate" Foreground="Wheat" FontFamily="Verdana" FontSize="10"></Run>
                    </TextBlock>
                    <Border BorderThickness="2" BorderBrush="DarkOrange" Background="Olive" CornerRadius="2" Height="78" Width="102" >
                        <Image x:Name="spAlbumInfoImage" Height="76" Width="100" Stretch="UniformToFill">
                        </Image>
                    </Border>                    
                </StackPanel>
        </Grid>
        <Canvas x:Name="canvasSlides">
            <Border x:Name="slideImageBorder" BorderBrush="Black" BorderThickness="2"  CornerRadius="3" Background="Black" >
                <!--<Image x:Name="slideImage" Source="http://localhost/priyakant_com_silverlight/gallery/kids/lg/7.jpg" Stretch="UniformToFill" />-->
                <Image x:Name="slideImage" Height="200" Width="200" Stretch="Uniform">
                </Image>
            </Border>
            <StackPanel x:Name="spThumbImage" Height="71" Width="104" Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="0,0,0,0">
                <Border BorderBrush="Black" BorderThickness="2"  CornerRadius="3" Background="Olive">
                    <!--<Image x:Name="imgThumbImage" Source="http://localhost/priyakant_com_silverlight/gallery/kids/lg/7.jpg" Height="67" Width="100" Stretch="UniformToFill" />-->
                    <Image x:Name="imgThumbImage" Height="67" Width="100" Stretch="UniformToFill" >
                        
                    </Image>
                </Border>
            </StackPanel>
        </Canvas>
        <Grid x:Name="spNav" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" MouseEnter="spNav_MouseEnter" MouseLeave="spNav_MouseLeave">
            <StackPanel x:Name="spNavBackground" Orientation="Horizontal" VerticalAlignment="Bottom" HorizontalAlignment="Stretch" Background="Black" Height="48" Opacity="0.2"/>
            <StackPanel x:Name="spNavLeft_main" Orientation="Horizontal" VerticalAlignment="Bottom" HorizontalAlignment="Left">
                <StackPanel x:Name="spNavLeft" Margin="10,0,0,16" >
                    <TextBlock x:Name="txtSlideCounter" FontFamily="Arial" FontSize="12" Foreground="AntiqueWhite"></TextBlock>
                </StackPanel>
            </StackPanel>
            <StackPanel x:Name="spNavMain" Orientation="Horizontal" VerticalAlignment="Bottom" HorizontalAlignment="Center" SizeChanged="spNavMain_SizeChanged" >
                <StackPanel x:Name="spNavPic" Orientation="Horizontal" VerticalAlignment="Bottom" HorizontalAlignment="Center" />
            </StackPanel>
            <StackPanel x:Name="spNavRight_main" Orientation="Vertical" VerticalAlignment="Bottom" HorizontalAlignment="Right" Margin="0,0,10,0">
                <StackPanel x:Name="spNavRight1" Orientation="Horizontal" HorizontalAlignment="Center">
                    <Image  x:Name="imgNavSkipFirst"  Height="16" Width="16" Source="/images/gray/tostart.png" Margin="0,0,0,0" MouseLeftButtonUp="imgNavSkipFirst_MouseLeftButtonUp" />
                </StackPanel>
                <StackPanel x:Name="spNavRight2" Orientation="Horizontal">
                    <Image  x:Name="imgNavSkipPrevPage"  Height="16" Width="16" Source="/images/gray/backward.png" Margin="0,0,0,0" MouseLeftButtonUp="imgNavSkipPrevPage_MouseLeftButtonUp" />
                    <Image  x:Name="imgNavPlayPause"  Height="16" Width="16" Margin="0,0,0,0" MouseLeftButtonUp="imgNavPlayPause_MouseLeftButtonUp" />
                    <Image  x:Name="imgNavSkipNextPage"  Height="16" Width="16" Source="/images/gray/foward.png" Margin="0,0,0,0" MouseLeftButtonUp="imgNavSkipNextPage_MouseLeftButtonUp" />
                </StackPanel>
                <StackPanel x:Name="spNavRight3" Orientation="Horizontal" HorizontalAlignment="Center">
                    <Image  x:Name="imgNavSkipLast"  Height="16" Width="16" Source="/images/gray/toend.png" Margin="0,0,0,0" MouseLeftButtonUp="imgNavSkipLast_MouseLeftButtonUp" />
                </StackPanel>
            </StackPanel>
        </Grid>
        <Grid x:Name="spNavTop" HorizontalAlignment="Stretch" VerticalAlignment="Top" MouseEnter="spNav_MouseEnter" MouseLeave="spNav_MouseLeave" Opacity="0.5">
            <StackPanel x:Name="spNavTopBackground" Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Stretch" Background="Black" Height="40" Opacity="0.2"/>
            <StackPanel x:Name="spNavTopLeft_main" Orientation="Vertical" VerticalAlignment="Center" HorizontalAlignment="Left">
                <TextBlock x:Name="txtComments" FontFamily="Arial" FontSize="12" Foreground="AntiqueWhite"></TextBlock>
            </StackPanel>
            <StackPanel x:Name="spNavTopRight_main" Orientation="Vertical" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,10,0">
                <StackPanel x:Name="spNavTopRight" Orientation="Horizontal">
                    <Image  x:Name="imgNavBrowse"  Height="16" Width="16" Source="/images/world.png" Margin="2,2,2,2" MouseLeftButtonUp="imgNavBrowse_MouseLeftButtonUp" MouseEnter="NavUIElement_MouseEnter" MouseLeave="NavUIElement_MouseLeave" />
                    <Image x:Name="imgSelectAlbum" Height="16" Width="16" Source="/images/images.png" Margin="2,2,2,2" MouseLeftButtonUp="imgSelectAlbum_MouseLeftButtonUp" MouseEnter="NavUIElement_MouseEnter" MouseLeave="NavUIElement_MouseLeave"/>
                    <Image x:Name="imgFullScreenTop" Height="16" Width="16" Margin="2,2,2,2" MouseLeftButtonUp="imgFullScreenTop_MouseLeftButtonUp" MouseEnter="NavUIElement_MouseEnter" MouseLeave="NavUIElement_MouseLeave"/>
                </StackPanel>
            </StackPanel>
            <Grid.Resources>
                <Storyboard x:Name="sb_spNavTop">
                    <DoubleAnimation x:Name="da_spNavTop" Storyboard.TargetName="spNavTop" Storyboard.TargetProperty="Opacity" From="2" To="0" Duration="0:0:4" SpeedRatio="2" AutoReverse="False" />
                </Storyboard>
            </Grid.Resources>
        </Grid>
        <StackPanel x:Name="spLoading" Orientation="Vertical" VerticalAlignment="Center">
            <Border Background="BurlyWood" Padding="5" CornerRadius="15" Width="100">
                <TextBlock FontSize="16" TextAlignment="Center">Loading...</TextBlock>
            </Border>
        </StackPanel>
        <StackPanel x:Name="spMainSlideImage_ProgressText" Orientation="Vertical" HorizontalAlignment="Left" VerticalAlignment="Top" Background="Black" Visibility="Collapsed">
            <TextBlock x:Name="MainSlideImage_ProgressText" Canvas.Top ="-4" Canvas.Left="0" Text="0%" FontSize="12" Foreground="BlanchedAlmond" />
        </StackPanel>
        <Canvas x:Name="canvasHidden" Visibility="Collapsed" />
    </Grid>
    <UserControl.Resources>
        <Storyboard x:Name="sbUC_ShakeIt" >
            <DoubleAnimation x:Name="sbUC_ShakeIt_DA" Storyboard.TargetName="canvasHidden" Storyboard.TargetProperty="Angle" From="-3" To="3" Duration="0:0:1" SpeedRatio="3" AutoReverse="True" RepeatBehavior="Forever" />
        </Storyboard>
        <Storyboard x:Name="sbUC_JumpIt" >
            <DoubleAnimation x:Name="sbUC_JumpIt_DA" Storyboard.TargetName="canvasHidden" Storyboard.TargetProperty="Y" From="0" To="-5" Duration="0:0:1" SpeedRatio="3" AutoReverse="True" RepeatBehavior="Forever" />
        </Storyboard>
        <Storyboard x:Name="sbUC_GrowThumb" >
            <DoubleAnimation x:Name="sbUC_GrowThumb_DA_Width" Storyboard.TargetName="canvasHidden" Storyboard.TargetProperty="Width" To="144" Duration="0:0:1" SpeedRatio="4" AutoReverse="False" />
            <DoubleAnimation x:Name="sbUC_GrowThumb_DA_Height" Storyboard.TargetName="canvasHidden" Storyboard.TargetProperty="Height" To="108" Duration="0:0:1" SpeedRatio="4" AutoReverse="False" />
        </Storyboard>
        <Storyboard x:Name="sbUC_ShrinkThumb">
            <DoubleAnimation x:Name="sbUC_ShrinkThumb_DA_Width" Storyboard.TargetName="canvasHidden" Storyboard.TargetProperty="Width" To="40" Duration="0:0:1" SpeedRatio="4" AutoReverse="False" />
            <DoubleAnimation x:Name="sbUC_ShrinkThumb_DA_Height" Storyboard.TargetName="canvasHidden" Storyboard.TargetProperty="Height" To="40" Duration="0:0:1" SpeedRatio="4" AutoReverse="False" />
        </Storyboard>
    </UserControl.Resources>
</UserControl>
